export default [
  {
    path: '/',
    component: () => import ('../views/Login.vue'),
    name: '',
    hidden: true
  },
  {
    path: '*',
    component: () => import ('../views/404.vue'),
    name: '',
    hidden: true
  },
  {
    path: '/Register',
    component: () => import ('../views/Register.vue'),
    name: '',
    hidden: true
  },
  {
    path: '/Home',
    component: () => import ('../views/Home.vue'),
    name: '我的快乐',
    childrenPath:['HappyPassages', 'HappyPhoto', 'HappyVideo', 'HappyMotionMap'],
    iconCls: 'fa fa-heartbeat',//图标样式class
    children: [
      {
        path: '/HappyPassages',
        component: () => import ('../views/nav1/HappyPassages.vue'),
        name: '快乐段子',
        meta: {
          requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        },
      },
      {
        path: '/HappyPhoto',
        component: () => import ('../views/nav1/HappyPhoto.vue'),
        name: '图片快乐',
        meta: {
          requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        },
      },
      {
        path: '/HappyVideo',
        component: () => import ('../views/nav1/HappyVideo.vue'),
        name: '快乐视频',
        meta: {
          requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        },
      },
      {
        path: '/HappyMotionMap',
        component: () => import ('../views/nav1/HappyMotionMap.vue'),
        name: '快乐动图',
        meta: {
          requireAuth: true, // 添加该字段，表示进入这个路由是需要登录的
        },
      },
    ]
  },

]
